#ifndef BOMB_H
#define BOMB_H

#include <StatefulUnit.h>


class Bomb : public StatefulUnit
{
    public:
        Bomb(const Vector2df p, const Vector2df v);
        virtual ~Bomb();

        int getState() const;
        void hit(const SimpleDirection dir, BaseUnit* player, CRstring parameter="");
        void hitMap(MapData* const data, const CollisionObject* const obj);
        virtual void update();  // Updates the counter, acceleration and other stuff
        void resetParent();
    protected:
        virtual void customUpdate();
    private:
        bool m_blownUp;
};

#endif // BOMB_H
